﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SampleHtmlMail._Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Sample web application for Altairis Mail Toolkit</title>
    <link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
    <form id="form1" runat="server">
    <h1>Sample HTML mail application for Altairis Mail Toolkit</h1>
    <blockquote><strong>Note:</strong> In default configuration, mail messages are sent using pickup directory <code>C:\InetPub\MailRoot\pickup</code> from e-mail address <code>from@example.com</code>. You might want to change the values in <code>web.config</code> file.</blockquote>
    <div class="form">
        <asp:MultiView ID="MultiViewPage" runat="server" ActiveViewIndex="0">
            <asp:View ID="ViewForm" runat="server">
                <table>
                    <tr>
                        <th>
                            <asp:Label Text="Recipient:" runat="server" AssociatedControlID="RecipientAddressTextBox" />
                        </th>
                        <td>
                            <asp:TextBox ID="RecipientAddressTextBox" runat="server" Text="to@example.com" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <asp:Label Text="Reply address:" runat="server" AssociatedControlID="ReplyToAddressTextBox" />
                        </th>
                        <td>
                            <asp:TextBox ID="ReplyToAddressTextBox" runat="server" Text="reply@example.com" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <asp:Label Text="Placeholder 0:" runat="server" AssociatedControlID="Placeholder0TextBox" />
                        </th>
                        <td>
                            <asp:TextBox ID="Placeholder0TextBox" runat="server" Text="Value 0" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <asp:Label Text="Placeholder 1:" runat="server" AssociatedControlID="Placeholder1TextBox" />
                        </th>
                        <td>
                            <asp:TextBox ID="Placeholder1TextBox" runat="server" Text="Value 1" Width="300px" />
                        </td>
                    </tr>
                </table>
                <dl>
                    <dt>Same culture as page (en-US):</dt>
                    <dd>
                        <asp:LinkButton ID="SendSimpleButton" runat="server" Text="Send simple message" OnClick="SendSimpleButton_Click" />
                    </dd>
                    <dd>
                        <asp:LinkButton ID="SendReplyButton" runat="server" Text="Send message with reply-to" OnClick="SendReplyButton_Click" />
                    </dd>
                    <dt>Message localized in specific culture (cs-CZ):</dt>
                    <dd>
                        <asp:LinkButton ID="SendSimpleLocalizedButton" runat="server" Text="Send simple message" OnClick="SendSimpleLocalizedButton_Click" />
                    </dd>
                    <dd>
                        <asp:LinkButton ID="SendReplyLocalizedButton" runat="server" Text="Send message with reply-to" OnClick="SendReplyLocalizedButton_Click" />
                    </dd>
                </dl>
            </asp:View>
            <asp:View ID="ViewMessage" runat="server">
                <dl>
                    <dt>Message was sent successfully.</dt>
                    <dd><a href="Default.aspx">Reset form</a></dd>
                </dl>
            </asp:View>
        </asp:MultiView>
    </div>
    <div class="footer">
        Copyright &copy; <a href="http://www.altairis.cz/">Altairis</a>, 2010-2011 | Find more info about Mail Toolkit at <a href="http://altairismailtoolkit.codeplex.com/">altairismailtoolkit.codeplex.com</a>
    </div>
    </form>
</body>
</html>
